package com.grape.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;


/**
 *
 * 账本表 实体类
 *
 * @author      putao
 * @email       2628279194@qq.com
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_account_book")
public class AccountBook extends BaseDomain implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 账本名字
     */
    @ApiModelProperty("账本名字")
    @NotBlank(message = "账本名字不能为空")
    private String name;
    /**
     * 账目总条数
     */
    @ApiModelProperty("账目总条数")
    private Integer totalNum;
    /**
     * 用户id
     */
    @ApiModelProperty("用户id")
    private String userId;
}
